package com.xp.interview.service.impl;

import com.xp.interview.dao.NoteModelDao;
import com.xp.interview.service.EditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by xp on 15/10/15.
 */
@Service
public class EditServiceImpl implements EditService {

    @Autowired
    private NoteModelDao noteModelDao;

    public void updateNote(String id, String title, String content) {
        noteModelDao.updateNote(id,title,content);
    }

    public void removeNote(String id) {
        noteModelDao.removeNote(id);
    }
}
